<!DOCTYPE html>
<html xmlns:th="https://www.thymeleaf.org" lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form th:action="@{/oauth2/authorize}" method="post">
  <span th:text="${clientName}"></span> 获取
  <span th:text="${principalName}"></span> 的
  <ol>
    <li th:each="scope : ${scopes}">
      <input type="checkbox" name="scope" th:value="${scope}" checked />
      <span th:text="${scope}"></span>
    </li>
  </ol>
  <input type="hidden" name="client_id" th:value="${client_id}">
  <input type="hidden" name="state" th:value="${state}">
  <input type="submit" value="ok">
</form>
</body>
</html>